package cn.gcjxsc.repository.order;

import cn.gcjxsc.entity.mall.WaitForDoneOrderInfo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author pumbaa
 */
public interface WaitForDoneOrderInfoRepository extends JpaRepository<WaitForDoneOrderInfo, Integer> {
    @Query("select o from WaitForDoneOrderInfo o where o.times < 3 and o.busiStatus=0 and o.processStatus = 0 order by o.created desc ")
    List<WaitForDoneOrderInfo> queryUnprocessOrderInfoList(Pageable pageable);
}
